import { http } from "@/utils/http";
//获取药物目录的接口
export const getMedicineCategoryApi = ()=> {
    return http({
        url:'/base/medicine/category',
        method:'GET'
    })
}
//获取药物列表的接口
export const getMedicineListApi = (categoryId:String)=> {
    return http({
        url:'/base/medicine/list',
        method:'GET',
        data:{categoryId}
    })
}
//存在数据库post
export const postMedicineApi = (selected:any)=> {
    return http({
        url:'/history/medicine',
        method:'POST',
        data:selected
        
    })
}